/*
 * Copyright 2018 The JA-SIG Collaborative. All rights reserved.
 * distributed with thi file and available online at
 */
package com.lap.scp.admin.utils;

/**
 * <pre>
 * 枚举类
 * </pre>
 * 
 * @author 劳水生 Exp
 * @Date 2018年10月17日 下午7:47:30
 * @since 1.0
 */
public abstract class ErpEnums {

	public enum ContractStatus {
		Before(0, "未动工"),
		/**
		 * 定位
		 */
		Dingwei(10, "定位"),
		/**
		 * 打孔
		 */
		Dakong(20, "打孔"),
		/**
		 * 布管
		 */
		Buguan(30, "布管"),

		D(40, "焊接"),

		E(50, "做水管"),

		F(60, "线管"),

		G(70, "装线控"),

		H(80, "吊主机"),

		Q(90, "保压"),

		W(100, "量百叶"),

		T(110, "装百叶"),

		Y(120, "调试"),

		Fish(999, "完工");

		private Integer value;

		private String name;

		public Integer getValue() {
			return value;
		}

		public String getName() {
			return name;
		}

		private ContractStatus(Integer value, String name) {
			this.value = value;
			this.name = name;
		}
	}

	public enum Yn {
		No(0, "禁用"), Yes(1, "正常");
		private Integer value;

		private String name;

		public Integer getValue() {
			return value;
		}

		public String getName() {
			return name;
		}

		private Yn(Integer value, String name) {
			this.value = value;
			this.name = name;
		}

	}

	public enum PayType {
		Person(0, "人工费"),

		Meta(10, "材料费"),

		Other(20, "其他费");

		private Integer value;

		private String name;

		public Integer getValue() {
			return value;
		}

		public String getName() {
			return name;
		}

		private PayType(Integer value, String name) {
			this.value = value;
			this.name = name;
		}

	}

	/**
	 * 性别枚举
	 * 
	 * @author lao
	 *
	 */
	public enum Sex {
		Female(2, "女"),

		Male(1, "男"),

		Unknow(0, "保密");

		private Integer value;

		private String name;

		public Integer getValue() {
			return value;
		}

		public String getName() {
			return name;
		}

		private Sex(Integer value, String name) {
			this.value = value;
			this.name = name;
		}

	}

	/**
	 * 状态，0-正常，1-迟到，2-旷工
	 * 
	 * @author lao
	 *
	 */
	public enum Attend {

		Normal(0, "正常"),

		Later(1, "迟到"),

		None(2, "旷工");

		private Integer value;

		private String name;

		public Integer getValue() {
			return value;
		}

		public String getName() {
			return name;
		}

		private Attend(Integer value, String name) {
			this.value = value;
			this.name = name;
		}

	}

}
